package com.hjw.dao;

import com.hjw.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>Project:Academic - UserDao<p>
 *
 * @author IvanWei玮 -- maste
 * @version 1.0
 * @DataTime 2025/4/10 21:26
 * @since 1.8
 */
public interface UserDao {

    List<User> findAll();

    User findByAccount(String account);

    User findById(Integer id);

    int update(Map<String, Object> map);

    int add(User user);

    List<User> findByCondition(Map<String,Object> map);

    int remove(Integer id);

}
